import Vue from 'vue'
import Router from 'vue-router'
import pdf from '@/view/pdfDownload'
import father from '@/view/father'
import son from '@/view/son'

// -------------------------webside
import webLayout from '@/view/webside/WebLayout'
import webAside from '@/components/WebAside'
import webIndex from '@/view/webside/webIndex'

// -------------------------index
import loginMyBook from '@/view/index/loginMyBook'

Vue.use(Router)

export default new Router({
  routes: [

    {//布局页面
      path:'/',
      name:'webAside',
      component:webAside,
      redirect:'/webIndex',
      children:[
        {
          // 主页
          path:'/webIndex',
          name:'webIndex',
          component:webIndex
        },       
        
      ]

    },
    {
      // 登录页面
      path:'/login',
      name:'loginMyBook',
      component:loginMyBook
    },
    {
      path:'/webAside',
      name:"webAside",
      component:webAside
    },
    
    {
      path:"/son",
      name:"son",
      component:son
    }
  ]
})
